<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/templates/mainTemplate.xhtml">


	<ui:define name="content">
		<f:view>
			<h:form id="fConfirmaRegistroUsuario">
				<div class="register bloques">
				<div align="center"><h:graphicImage
					value="/layout/img/registro.jpg"></h:graphicImage></div>

				<div align="right" style="padding-right: 280px;"><h:panelGrid
					columns="3" rowClasses="registerRow">


					<h:outputLabel value="#{messages.username}" for="cRegUserName"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="cRegUserName" value="#{user.usuario}" />





					<h:outputLabel value="#{messages.password}" for="regPassword1"></h:outputLabel>
					<rich:spacer width="50px;"/>

					<rich:simpleTogglePanel switchType="client"
						label="#{messages.seePassword}" height="20px" width="140px;"
						opened="false">#{user.password}</rich:simpleTogglePanel>

					<h:outputLabel value="#{messages.name}" for="regName"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="regName" style="width: 100px;"
						styleClass="inputText" value="#{user.nombre}">
					</h:outputText>



					<h:outputLabel value="#{messages.firstSurname}"
						for="regfirstSurname">
					</h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="regfirstSurname" style="width: 100px;"
						styleClass="inputText" value="#{user.apellido1}"></h:outputText>


					<h:outputLabel value="#{messages.secondSurname}"
						for="regsecondSurname"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="regsecondSurname" style="width: 100px;"
						styleClass="inputText" value="#{user.apellido2}"></h:outputText>



					<h:outputLabel value="#{messages.address}" for="regAddress"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="regAddress" style="width: 100px;"
						styleClass="inputText" value="#{user.direccion}"></h:outputText>




					<h:outputLabel value="#{messages.province}" for="regProvincias"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText value="#{user.municipio.provincia.nombre}" />

					<h:outputLabel value="#{messages.city}" for="regMunicipio"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText value="#{user.municipio.nombre}" />



					<h:outputLabel value="#{messages.email}" for="regEmail"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="regEmail" style="width: 100px;"
						styleClass="inputText" value="#{user.email}"></h:outputText>


					<h:outputLabel value="#{messages.phone}" for="regPhone"></h:outputLabel>
					<rich:spacer width="50px;"/>
					<h:outputText id="regPhone" style="width: 100px;"
						styleClass="inputText" value="#{user.telefono}"></h:outputText>
				</h:panelGrid></div>

				<div align="center" style="margin-top: 13px;"><h:commandButton
					id="bRegister" value="#{messages.confirm}" styleClass="btn100"
					action="#{registerUser.confirm}"></h:commandButton></div>
				</div>

			</h:form>
		</f:view>
	</ui:define>
</ui:composition>

